<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>使用字符串充当数据源</title>
<script language="JavaScript" src="js/FusionCharts.js"></script>
</head>
<body>
	<div id="chartDiv" align="center">Chart Container Pie 3D</div>
	<script type="text/javascript">
		//数据源
		var xmlData = "<graph caption='月销售额柱状图' xAxisName='Month' yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'>"
				+ "<set name='一月' value='462' color='AFD8F8' />"
				+ "<set name='Feb' value='857' color='F6BD0F' />"
				+ "<set name='Mar' value='671' color='8BBA00' />"
				+ "<set name='Apr' value='494' color='FF8E46' />"
				+ "<set name='May' value='761' color='008E8E' />"
				+ "<set name='Jun' value='960' color='D64646' />"
				+ "<set name='Jul' value='629' color='8E468E' />"
				+ "<set name='Aug' value='622' color='588526' />"
				+ "<set name='Sep' value='376' color='B3AA00' />"
				+ "<set name='Oct' value='494' color='008ED6' />"
				+ "<set name='Nov' value='761' color='9D080D' />"
				+ "<set name='Dec' value='960' color='A186BE' />" + "</graph>";

		var myChart1 = new FusionCharts("FusionCharts/FCF_Column3D.swf", "myChartId", "600", "350");
		myChart1.setDataXML(xmlData);
		myChart1.render("chartDiv");
	</script>
</body>
</html>